<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Pagination 分页</title>

    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <!-- 引入ElementUI组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
    <div id="app">
        <!--current-page:内置事件,当前页码改变时会触发,
        可以获取改变之后的页码
        -->
        <el-pagination @current-change="handleCurrentChange"
            current-page="1" page-size="5"
             layout="total,prev,pager,next,jumper"
              :total="616"
        >
        </el-pagination>

        <script>
            new Vue({
                el:"#app",
                methods:{
                    handleCurrentChange(page){
                        alert(page)
                    }
                }
            })
        </script>
    </div>


</body>
</html>